package com.chinasofti.info_manager.controller;



import com.chinasofti.info_manager.domain.Student;
import com.chinasofti.info_manager.service.StudentService;

import java.util.Scanner;

public class StudentController extends BaseStudentController{

    @Override
    public Student inputStudentInfo(String id) {
        System.out.println("请输入学生姓名:");
        String name = sc.next();
        System.out.println("请输入学生年龄:");
        String age = sc.next();
        System.out.println("请输入学生生日:（格式：年年-月月-日日）");
        String birthday = sc.next();
        Student stu = new Student();
        stu.setId(id);
        stu.setAge(age);
        stu.setName(name);
        stu.setBirthday(birthday);
        return stu;
    }

}
